package de.stefanocke.roo.wicket;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * The trigger annotation for a service binding that uses Roo-provided persistence for service binding.
 * The idea of the service binding is to make the generated UI components agnostic of the kind of business layer 
 * to be called. They should be usable even without any Roo provided persistence.
 * <p>
 * TODO: There might be other bindings as well... For example calling some web service.
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
public @interface RooPersistenceBinding{
	Class<?> modelClass();
	String queryName() default "";
	String countQueryName() default "";
	
}

